package com.cn.xiaonuo.slbfinances.members.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface CmSystemMapper extends BaseMapper<String> {
    /**
     * 查询上下级关系信息
     */
    List<Map<String,Object>> queryRelation(@Param("userId")String userId,@Param("phone")String phone);

    /**
     * 根据用户ID查询所有下级信息
     */
    List<Map<String,Object>> queryLowerLevel(@Param("userId")Integer userId);
}
